package com.ruoyi.human.service.impl;

import com.ruoyi.human.domain.HuRider;
import com.ruoyi.human.mapper.HuRiderMapper;
import com.ruoyi.human.service.HuRiderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HuRiderServiceImpl implements HuRiderService {
    @Autowired
    private HuRiderMapper huRiderMapper;
    public List<HuRider> listRiders() {
        return huRiderMapper.listRiders();
    }

    @Override
    public HuRider getRiderById(int riderId) {
        return huRiderMapper.selectRiderById(riderId);
    }
}
